<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    {include file='base/common_header'}
    <style>
        .layui-table td, .layui-table th { min-width: auto; }
    </style>
</head>

<body>
<div class="x-nav">
            <span class="layui-breadcrumb">
                <a href="/admin">首页</a>
                <a href="/admin/user">用户信息</a>
            </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
    </a>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <form class="layui-form layui-col-space5">
                        <div class="layui-input-inline layui-show-xs-block">
                            <select name="platform">
                                <option value="0" {if $platform eq 0}selected{/if}>全部</option>
                                <option value="2" {if $platform eq 1}selected{/if}>QQ端</option>
                                <option value="2" {if $platform eq 2}selected{/if}>微信端</option>
                                <option value="3" {if $platform eq 3}selected{/if}>抖音端</option>
                            </select>
                        </div>
                        <div class="layui-input-inline layui-show-xs-block">
                            <input type="text" value="{$name}" name="name" placeholder="请输入用户名" autocomplete="off" class="layui-input"></div>
                        <div class="layui-input-inline layui-show-xs-block">
                            <input type="text" value="{$phone}" name="phone" placeholder="请输入绑定手机号码" autocomplete="off" class="layui-input"></div>
                        <div class="layui-input-inline layui-show-xs-block">
                            <button class="layui-btn" lay-submit="" lay-filter="sreach">
                                <i class="layui-icon">&#xe615;</i></button>
                        </div>
                    </form>
                </div>
                <div class="layui-card-body ">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th>用户ID</th>
                            <th>用户openid</th>
                            <th>用户昵称</th>
                            <th>用户头像</th>
                            <th>注册时间</th>
                        </thead>
                        <tbody>
                        {volist name='list' id='topic'}
                        <tr>
                            <td>{$topic.user_id}</td>
                            <td>{$topic.openid}</td>
                            <td>{$topic.nickname}</td>
                            <td>{if condition="!empty($topic.avatar_url)"}<img src="{$topic.avatar_url}" width="80px" height="80px">{/if}</td>
                            <td>{if condition="!empty($topic.create_at)"}{$topic.create_at|date="Y-m-d H:i:s"}{/if}</td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
                <div class="layui-card-body ">
                    {$page|raw}
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>

    layui.use('table', function() {
        var table = layui.table
            , form = layui.form;
    })

</script>
</html>